<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'selection.jsp' starting page</title>

</head>

<body>
	<h1>暑假工程实践学生选课登记</h1>
	<form action="selectionServlet" method="post">
		<table>
			<tr>
				<td>姓名:</td>
				<td><input type="text" name="name"></td>
			</tr>
			<tr>
				<td>学号:</td>
				<td><input type="text" name="studentNumber"></td>
			</tr>
			<tr>
				<td>电话:</td>
				<td><input type="text" name="telephone"></td>
			</tr>
			<tr>
				<td>所属专业:</td>
				<td>
					<select name="major">
						<option selected="selected" value="软件工程">软件工程</option>
						<option value="计算机">计算机</option>
						<option value="物联网">物联网</option>
						<option value="大数据">大数据</option>
					</select>
				</td>
			</tr>
			<tr>
				<td>指导老师:</td>
				<td><input type="text" name="teacher"></td>
			</tr>
			<tr>
				<td>课程名称:</td>
				<td><input type="text" name="courseName"></td>
			</tr>
			<tr>
				<td>成果提交:</td>
				<td>
					<input type="checkbox" name="result" value="报告"> 报告 <br>
					<input type="checkbox" name="result" value="源代码"> 源代码 <br>
				</td>
			</tr>
			<tr>
				<td>备注:</td>
				<td>
					<textarea rows="10" cols="20" name="remark"></textarea>
				</td>
			</tr>
			<tr>
				<td>
					<input type="submit" value="保存">
					<input type="reset" value="重写">
				</td>
			</tr>
		</table>
	</form>
</body>
</html>
